<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>BabyOS: b_menu.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="2.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">BabyOS
   &#160;<span id="projectnumber">V2.0.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_b9223522bb56aee4ab59f7ba381d2163.html">bos</a></li><li class="navelem"><a class="el" href="dir_f2a2cc749b6bfcea90db6730434b0bd6.html">core</a></li><li class="navelem"><a class="el" href="dir_37b66dfbfdffce01c33ebea49c49c2c3.html">inc</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">b_menu.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="b__menu_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#ifndef __B_MENU_H__</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#define __B_MENU_H__</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160; <span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="comment">/*Includes ----------------------------------------------*/</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="b__config_8h.html">b_config.h</a>&quot;</span>  </div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#if _MENU_ENABLE</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="group___m_e_n_u___exported___types_definitions.html#ga69f5614c73548c92f144c9b499a23302">   57</a></span>&#160;<span class="keyword">typedef</span> void (*<a class="code" href="group___m_e_n_u___exported___types_definitions.html#ga69f5614c73548c92f144c9b499a23302">pCreateUI</a>)(uint32_t pre_id);</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160; </div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="structb_menu_item.html">   61</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structb_menu_item.html">bMenuItem</a></div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;{</div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="structb_menu_item.html#abaabdc509cdaba7df9f56c6c76f3ae19">   63</a></span>&#160;    uint32_t <a class="code" href="structb_menu_item.html#abaabdc509cdaba7df9f56c6c76f3ae19">id</a>;</div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="structb_menu_item.html#aab72176f9919a9e3931cf5b2c46f66e7">   64</a></span>&#160;    <span class="keyword">struct </span><a class="code" href="structb_menu_item.html">bMenuItem</a>  *<a class="code" href="structb_menu_item.html#aab72176f9919a9e3931cf5b2c46f66e7">prev</a>;</div><div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="structb_menu_item.html#affd147fae2bf002d968438e518d21c82">   65</a></span>&#160;    <span class="keyword">struct </span><a class="code" href="structb_menu_item.html">bMenuItem</a>  *<a class="code" href="structb_menu_item.html#affd147fae2bf002d968438e518d21c82">next</a>;</div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="structb_menu_item.html#a7a208733d75d00aa05b1b570b554e46e">   66</a></span>&#160;    <span class="keyword">struct </span><a class="code" href="structb_menu_item.html">bMenuItem</a>  *<a class="code" href="structb_menu_item.html#a7a208733d75d00aa05b1b570b554e46e">parent</a>;</div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="structb_menu_item.html#a8caaa031d0d22a8243a5275cd78ff3ce">   67</a></span>&#160;    <span class="keyword">struct </span><a class="code" href="structb_menu_item.html">bMenuItem</a>  *<a class="code" href="structb_menu_item.html#a8caaa031d0d22a8243a5275cd78ff3ce">child</a>;</div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="structb_menu_item.html#a247b9bc15b9b38d3c1541b9999249ce5">   68</a></span>&#160;    <a class="code" href="group___m_e_n_u___exported___types_definitions.html#ga69f5614c73548c92f144c9b499a23302">pCreateUI</a>         <a class="code" href="structb_menu_item.html#a247b9bc15b9b38d3c1541b9999249ce5">create_ui</a>;</div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="structb_menu_item.html#a81b50196ed90c63596da2ace4dd2a97b">   69</a></span>&#160;    uint8_t           <a class="code" href="structb_menu_item.html#a81b50196ed90c63596da2ace4dd2a97b">visible</a>;</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;}<a class="code" href="group___m_e_n_u___exported___types_definitions.html#ga0a14bc43e462b956037341eb7931b6f0">bMenuItem_t</a>;</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="group___m_e_n_u___exported___defines.html#gafd6e6d4a623b9db29e5da2e85fe4b679">   83</a></span>&#160;<span class="preprocessor">#define MENU_UP         1</span></div><div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="group___m_e_n_u___exported___defines.html#gaf4b9d343a946b57cea1efdd357de259b">   84</a></span>&#160;<span class="preprocessor">#define MENU_DOWN       2</span></div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="group___m_e_n_u___exported___defines.html#gae81a0a27142ec4047577169a5afd80d4">   85</a></span>&#160;<span class="preprocessor">#define MENU_BACK       3</span></div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="group___m_e_n_u___exported___defines.html#ga338e16971a67fd5438ee3b3f883b07da">   86</a></span>&#160;<span class="preprocessor">#define MENU_ENTER      4</span></div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="keywordtype">int</span> <a class="code" href="group___m_e_n_u___exported___functions.html#gaaa960c2d2873f4115ab72025c2e249d8">bMenuAddSibling</a>(uint32_t ref_id, uint32_t <span class="keywordtype">id</span>, <a class="code" href="group___m_e_n_u___exported___types_definitions.html#ga69f5614c73548c92f144c9b499a23302">pCreateUI</a> f);</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;<span class="keywordtype">int</span> <a class="code" href="group___m_e_n_u___exported___functions.html#ga8ec84642e8453c74118b50ea4538f61b">bMenuAddChild</a>(uint32_t ref_id, uint32_t <span class="keywordtype">id</span>, <a class="code" href="group___m_e_n_u___exported___types_definitions.html#ga69f5614c73548c92f144c9b499a23302">pCreateUI</a> f);</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___m_e_n_u___exported___functions.html#gaccc45ecdf5fa48d56cbbaf3888fed568">bMenuAction</a>(uint8_t cmd);</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___m_e_n_u___exported___functions.html#ga7acf282f020822cdcb12b76ea2144290">bMenuJump</a>(uint32_t <span class="keywordtype">id</span>);</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;uint32_t <a class="code" href="group___m_e_n_u___exported___functions.html#gafdcdf577531d8161ffd51ba56f668d97">bMenuCurrentID</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="keywordtype">int</span> <a class="code" href="group___m_e_n_u___exported___functions.html#ga39126ec066d7feed10c170f4a8fdfdd0">bMenuSetVisible</a>(uint32_t <span class="keywordtype">id</span>, uint8_t s);</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    }</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160; </div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;<span class="preprocessor">#endif  </span></div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;<span class="comment">/************************ Copyright (c) 2020 Bean *****END OF FILE****/</span></div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;</div><div class="ttc" id="group___m_e_n_u___exported___types_definitions_html_ga0a14bc43e462b956037341eb7931b6f0"><div class="ttname"><a href="group___m_e_n_u___exported___types_definitions.html#ga0a14bc43e462b956037341eb7931b6f0">bMenuItem_t</a></div><div class="ttdeci">struct bMenuItem bMenuItem_t</div></div>
<div class="ttc" id="structb_menu_item_html_a7a208733d75d00aa05b1b570b554e46e"><div class="ttname"><a href="structb_menu_item.html#a7a208733d75d00aa05b1b570b554e46e">bMenuItem::parent</a></div><div class="ttdeci">struct bMenuItem * parent</div><div class="ttdef"><b>Definition:</b> <a href="b__menu_8h_source.html#l00066">b_menu.h:66</a></div></div>
<div class="ttc" id="structb_menu_item_html_a8caaa031d0d22a8243a5275cd78ff3ce"><div class="ttname"><a href="structb_menu_item.html#a8caaa031d0d22a8243a5275cd78ff3ce">bMenuItem::child</a></div><div class="ttdeci">struct bMenuItem * child</div><div class="ttdef"><b>Definition:</b> <a href="b__menu_8h_source.html#l00067">b_menu.h:67</a></div></div>
<div class="ttc" id="group___m_e_n_u___exported___functions_html_ga8ec84642e8453c74118b50ea4538f61b"><div class="ttname"><a href="group___m_e_n_u___exported___functions.html#ga8ec84642e8453c74118b50ea4538f61b">bMenuAddChild</a></div><div class="ttdeci">int bMenuAddChild(uint32_t ref_id, uint32_t id, pCreateUI f)</div></div>
<div class="ttc" id="group___m_e_n_u___exported___types_definitions_html_ga69f5614c73548c92f144c9b499a23302"><div class="ttname"><a href="group___m_e_n_u___exported___types_definitions.html#ga69f5614c73548c92f144c9b499a23302">pCreateUI</a></div><div class="ttdeci">void(* pCreateUI)(uint32_t pre_id)</div><div class="ttdef"><b>Definition:</b> <a href="b__menu_8h_source.html#l00057">b_menu.h:57</a></div></div>
<div class="ttc" id="structb_menu_item_html_a247b9bc15b9b38d3c1541b9999249ce5"><div class="ttname"><a href="structb_menu_item.html#a247b9bc15b9b38d3c1541b9999249ce5">bMenuItem::create_ui</a></div><div class="ttdeci">pCreateUI create_ui</div><div class="ttdef"><b>Definition:</b> <a href="b__menu_8h_source.html#l00068">b_menu.h:68</a></div></div>
<div class="ttc" id="structb_menu_item_html_abaabdc509cdaba7df9f56c6c76f3ae19"><div class="ttname"><a href="structb_menu_item.html#abaabdc509cdaba7df9f56c6c76f3ae19">bMenuItem::id</a></div><div class="ttdeci">uint32_t id</div><div class="ttdef"><b>Definition:</b> <a href="b__menu_8h_source.html#l00063">b_menu.h:63</a></div></div>
<div class="ttc" id="group___m_e_n_u___exported___functions_html_ga7acf282f020822cdcb12b76ea2144290"><div class="ttname"><a href="group___m_e_n_u___exported___functions.html#ga7acf282f020822cdcb12b76ea2144290">bMenuJump</a></div><div class="ttdeci">void bMenuJump(uint32_t id)</div></div>
<div class="ttc" id="structb_menu_item_html"><div class="ttname"><a href="structb_menu_item.html">bMenuItem</a></div><div class="ttdef"><b>Definition:</b> <a href="b__menu_8h_source.html#l00061">b_menu.h:61</a></div></div>
<div class="ttc" id="group___m_e_n_u___exported___functions_html_gaaa960c2d2873f4115ab72025c2e249d8"><div class="ttname"><a href="group___m_e_n_u___exported___functions.html#gaaa960c2d2873f4115ab72025c2e249d8">bMenuAddSibling</a></div><div class="ttdeci">int bMenuAddSibling(uint32_t ref_id, uint32_t id, pCreateUI f)</div></div>
<div class="ttc" id="structb_menu_item_html_affd147fae2bf002d968438e518d21c82"><div class="ttname"><a href="structb_menu_item.html#affd147fae2bf002d968438e518d21c82">bMenuItem::next</a></div><div class="ttdeci">struct bMenuItem * next</div><div class="ttdef"><b>Definition:</b> <a href="b__menu_8h_source.html#l00065">b_menu.h:65</a></div></div>
<div class="ttc" id="b__config_8h_html"><div class="ttname"><a href="b__config_8h.html">b_config.h</a></div></div>
<div class="ttc" id="group___m_e_n_u___exported___functions_html_gaccc45ecdf5fa48d56cbbaf3888fed568"><div class="ttname"><a href="group___m_e_n_u___exported___functions.html#gaccc45ecdf5fa48d56cbbaf3888fed568">bMenuAction</a></div><div class="ttdeci">void bMenuAction(uint8_t cmd)</div></div>
<div class="ttc" id="structb_menu_item_html_a81b50196ed90c63596da2ace4dd2a97b"><div class="ttname"><a href="structb_menu_item.html#a81b50196ed90c63596da2ace4dd2a97b">bMenuItem::visible</a></div><div class="ttdeci">uint8_t visible</div><div class="ttdef"><b>Definition:</b> <a href="b__menu_8h_source.html#l00069">b_menu.h:69</a></div></div>
<div class="ttc" id="group___m_e_n_u___exported___functions_html_gafdcdf577531d8161ffd51ba56f668d97"><div class="ttname"><a href="group___m_e_n_u___exported___functions.html#gafdcdf577531d8161ffd51ba56f668d97">bMenuCurrentID</a></div><div class="ttdeci">uint32_t bMenuCurrentID(void)</div></div>
<div class="ttc" id="structb_menu_item_html_aab72176f9919a9e3931cf5b2c46f66e7"><div class="ttname"><a href="structb_menu_item.html#aab72176f9919a9e3931cf5b2c46f66e7">bMenuItem::prev</a></div><div class="ttdeci">struct bMenuItem * prev</div><div class="ttdef"><b>Definition:</b> <a href="b__menu_8h_source.html#l00064">b_menu.h:64</a></div></div>
<div class="ttc" id="group___m_e_n_u___exported___functions_html_ga39126ec066d7feed10c170f4a8fdfdd0"><div class="ttname"><a href="group___m_e_n_u___exported___functions.html#ga39126ec066d7feed10c170f4a8fdfdd0">bMenuSetVisible</a></div><div class="ttdeci">int bMenuSetVisible(uint32_t id, uint8_t s)</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
